package com.kdd.campus.sh.controller;

import com.kdd.campus.common.exception.ExceptionEnum;
import com.kdd.campus.common.exception.MyException;
import com.kdd.campus.common.util.RedisUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: fcp
 * @Date: 2020/4/22 21:06
 * @Description:
 */
@RestController
@RequestMapping("test")
public class TestController {

    @RequestMapping("redis")
    public void testRedis(){
        int a = 10;
        throw new MyException(ExceptionEnum.STOCK_OUT);
    }



}
